import request from "@/utils/request.js";


const baseUrl = '/admin/car'
export const carQueryService = () => {
    return request({
        url: `${baseUrl}`,
        method: 'GET',
    })
}

export const carAddService = (data) => {
    return request({
        url: `${baseUrl}`,
        method: 'POST',
        data
    })
}
export const carUpdateService = (data) => {
    return request({
        url: `${baseUrl}`,
        method: 'PUT',
        data
    })
}

export const carRemoveService = (id) => {
    return request({
        url: `${baseUrl}/${id}`,
        method: 'DELETE'
    })
}
